/**
 * ! 作者: ifredom
 * * 描述：...
 * TODO: 创建时间  2021-03-20 23:52:54
 **/
import { init, h } from "snabbdom";

import _ from "lodash";
// import $ from "jquery";

import "./lodash_template";

import "./assets/css.css"; // 测试css引入，以及css background 引入图片
var advator = require("./assets/advator.png"); // 测试require图片
import gif401 from "./assets/401.gif";

console.log(window.$);
console.log(window.jQuery);
function component() {
  let element = document.createElement("div");
  element.innerHTML = _.join(["Hello", "Webpack"], "");
  return element;
}

function componentImage() {
  let img = document.createElement("img");
  img.src = gif401; // 测试通过js属性引用图片
  return img;
}


jQuery(".test").text("测试jquery方法");
document.body.appendChild(component());
document.body.appendChild(componentImage());
